import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App";
import { Provider } from "react-redux";
import { store, persistor } from "./stores/index.ts";
import { PersistGate } from "redux-persist/integration/react";
// 设置antd组件库语言为中文
import zh_CN from "antd/es/locale/zh_CN";
import { ConfigProvider } from "antd";

createRoot(document.getElementById("root")!).render(
  <Provider store={store}>
    <PersistGate loading={null} persistor={persistor}>
      <ConfigProvider locale={zh_CN}>
        <App />
      </ConfigProvider>
    </PersistGate>
  </Provider>
);
